package com.im.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * ws枚举
 *
 * @author yunZhouJiaDi
 */
@Getter
@AllArgsConstructor
public enum WsEnum {

    INIT(10000, "连接WS获取信息"),
    CONTACT_APPLY(10001, "好友申请"),
    ADD_FRIEND(10002, "添加好友打招呼消息"),
    ADD_FRIEND_SELF(10003, "添加好友打招呼消息发送给自己"),
    CONTACT_UPDATE(10004, "用户名称/头像修改"),
    PRIVATE_CHAT_SEND_ACK(10005, "私聊消息ack"),
    PRIVATE_CHAT_SEND(10006, "私聊消息"),
    CLUSTER_CHAT_SEND_ACK(10007, "群聊消息ack"),
    CLUSTER_CHAT_SEND(10008, "群聊消息"),
    CLUSTER_CREATE(10009, "群创建成功"),
    ADD_CLUSTER(10010, "加入群聊"),
    DISSOLUTION_CLUSTER(10011, "解散群聊"),
    LEAVE_CLUSTER(10012, "退出群聊"),
    KICK_CLUSTER(10013, "踢出群聊"),
    CLUSTER_UPDATE(10014, "群名称/头像修改"),
    DELETE_CHAT(10015, "删除会话消息通知"),
    PRIVATE_MESSAGE_READ(10016, "私聊消息已读"),
    PRIVATE_MESSAGE_TOP(10017, "私聊消息置顶"),
    CLUSTER_MESSAGE_TOP(10018, "群聊消息置顶"),
    CLEAR_CHAT(10019, "清空会话消息通知"),
    FORCE_LOGOUT(10020, "强制下线"),
    ;

    private final Integer code;
    private final String message;
}
